var  transformArr=[]
//  判断是什么开发环境   production 上线    development  开发  本地
if(process.env.NODE_ENV=='production'){
  transformArr.push('transform-remove-console')
}

module.exports = {
  presets: [
    '@vue/cli-plugin-babel/preset'
  ],
  "plugins": [
    [
      "component",
      {
        "libraryName": "element-ui",
        "styleLibraryName": "theme-chalk"
      }
    ],
    ...transformArr
  ]
}
